<div class="container-fluid">


    <h1>Create form</h1>
    <?php $courses = $viewModel->get("courses"); ?>
    <?php include 'views/Include/alert.php'; ?>
    <form class="form-horizontal" method="POST">
        <div class="control-group">
            <label class="control-label" for="inputClassesName">Classes Name</label>
            <div class="controls">
                <input type="text" id="inputClassesName" name="classname" placeholder="Classes Name" required="required" >
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputCourseID">Course</label>
            <div class="controls">
                <select id="inputCourseID" name="courses_id">
                    <?php
                    foreach ($courses as $course) {
                        echo "<option value='" . $course->courses_id . "'>" . $course->courses_name . "</option>";
                    }
                    ?>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputKeywords">Keywords</label>
            <div class="controls">
                <input type="text" id="inputKeywords" name="keyword" placeholder="Keywords" >
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputDescription">Description</label>
            <div class="controls">
                <textarea id="inputDescription" class="editor_noimage" name="description" placeholder="Description" required="required" style="margin: 0px; height: 167px; width: 457px;"></textarea>
            </div>
        </div>
        
        <div class="control-group" >
            <label class="control-label" for="inputSubjectID">Day of week: </label>
            <div class="controls" id="sltDay"  style="">
                <table class="table"> 
                    <tr>
                        <td><label>
                                <input type="checkbox" class="sltDayOfWeek" name="sltDayOfWeek[]" value="2" id="chkMonday" />
                                Monday</label></td>
                        <td><label>
                                <input type="checkbox" class="sltDayOfWeek" name="sltDayOfWeek[]" value="3" id="chkTueday" />
                                Tuesday</label></td>
                        <td><label>
                                <input type="checkbox" class="sltDayOfWeek" name="sltDayOfWeek[]" value="4" id="chkWednesday" />
                                Wednesday</label></td>
                    </tr>
                    <tr>
                        <td><label>
                                <input type="checkbox" class="sltDayOfWeek" name="sltDayOfWeek[]" value="5" id="chkThursday" />
                                Thursday</label></td>
                        <td><label>
                                <input type="checkbox" class="sltDayOfWeek" name="sltDayOfWeek[]" value="6" id="chkFridays"/>
                                Friday</label></td>
                        <td><label>
                                <input type="checkbox" class="sltDayOfWeek" name="sltDayOfWeek[]" value="7" id="chkSaturday" />
                                Saturday</label></td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputStatus">Status</label>
            <div class="controls">
                <select name="status">
                    <option value="0">Deactive</option>
                    <option value="1">Active</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
                <button type="submit" class="btn btn-success">Submit</button>
                <button type="reset" class="btn">Reset</button>
            </div>
        </div>
    </form>
</div>